#!/bin/bash

s=`ls -v instances2/*.dat`
NOW=$(date +"%y%m%d%H%M")
output="result_h_D$NOW.txt"
touch $output
x=`date`
echo "**********************************" >> $output
echo "Novo Teste" >> $output
echo "Data: $x" >> $output
echo "**********************************" >> $output

for ss in $s
do
 ../Debug/pcstp $ss 0 >> $output
 echo "###############" >> $output
# echo "Done $ss"
done
